
<template>
  <div class="bottom-bar">
    <div class="service">
      <i class="fab fa-mandalorian"></i>
      <div>客服</div>
    </div>
    <div class="service">
      <i class="fas fa-store"></i>
      <div>店铺</div>
    </div>
    <div class="service">
      <i class="fas fa-star"></i>
      <div>收藏</div>
    </div>
    <div class="add-cart" @click="addCart">加入购物车</div>
    <div class="buy">立即购买</div>
  </div>
</template>

<script>
  export default {
    name: "DetailBottomBar",
    methods:{
      addCart(){
        this.$emit('addCart')
      }
    }
  }
</script>

<style scoped>
  .bottom-bar{
    width: 100%;
    height: 55px;
    background-color: #ff5777;
    position: sticky;
    bottom:-1px;
    z-index: 999;
    display: flex;
    align-items: center;
  }
  .service{

    border-right: 1px solid #aaaaaa;
    text-align: center;
    width: calc(100%/6);
  }
  .add-cart,.buy{
    line-height: 55px;
    height: 55px;
    width: 25%;
    text-align: center;
  }
  .add-cart{
    color: white;
    font-weight: bold;
    border-right: 1px solid #aaaaaa;
    background-image: linear-gradient(to left, #ff9602, #ffc700);
  }
  .buy{
    font-size: 18px;
    color: white;
    font-weight: bold;
    background-image: linear-gradient(to left, #ff4b00, #ff7600);
  }
</style>